package com.tensquare.friend.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Component
@RequestMapping("/user")
@FeignClient("tensquare-user")
public interface UserClient {

    @RequestMapping(value="/{userId}/{friendId}/{count}",method= RequestMethod.PUT)
    public void updateFanAndFollowCount(@PathVariable("userId") String userId ,
           @PathVariable("friendId") String friendId, @PathVariable("count")  Integer count);


}
